﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BrowserDatas.aspx.cs" Inherits="BrowserDatas" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>浏览数据</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p style="width: 1074px">
            |<asp:LinkButton ID="LinkButton1" 
                runat="server" onclick="LinkButton1_Click" Visible="False">添加需求</asp:LinkButton>
&nbsp;|
            <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click" 
                Visible="False">上传模板</asp:LinkButton>
        &nbsp;|
            <asp:HyperLink 
            ID="hl1" 
            runat="server"
            NavigateUrl="~/ModifyPwd.aspx" >修改密码</asp:HyperLink>
&nbsp;|
            <asp:LinkButton ID="LinkButton5" runat="server" onclick="LinkButton5_Click" 
                Visible="False">权限管理</asp:LinkButton>
&nbsp;|
            <asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">退出</asp:LinkButton>
        </p>
    </div>
    
    <div>        
        <asp:Label 
            ID="lblUserName" 
            runat="server" 
            Text="用户：" />
        <asp:Label ID="lbUser" runat="server" Text="Label" ForeColor="Red"></asp:Label>
&nbsp;&nbsp; 角色：<asp:Label ID="lbRole" runat="server" ForeColor="Red"></asp:Label>
    </div>
    
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                编辑查询条件：
        <br />
        
                &nbsp;&nbsp;<asp:TextBox ID="tbCondition" runat="server" Width="220px"></asp:TextBox>
                &nbsp;
                <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="模糊查询" 
                    Width="100px" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnDispalyAll" runat="server" OnClick="btnDispalyAll_Click" 
                    Text="显示全部" Width="100px" />
                           
        <br />
                           
            </div>
    <br />
    
            <div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="id" onrowdeleting="GridView1_RowDeleting" PageSize="5" 
                    Width="100%">
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="序列号" />
                        <asp:BoundField DataField="platform" HeaderText="平台" />
                        <asp:BoundField DataField="productname" HeaderText="产品名称" />
                        <asp:BoundField DataField="process" HeaderText="工序" />
                        <asp:BoundField DataField="version" HeaderText="版本" />
                        <asp:BoundField DataField="demandtime" DataFormatString="{0:yyyy-MM-dd}" 
                            HeaderText="需求时间" HtmlEncode="False" />
                        <asp:BoundField DataField="remark" HeaderText="备注" />
                        <asp:BoundField DataField="committime" DataFormatString="{0:yyyy-MM-dd}" 
                            HeaderText="上传时间" HtmlEncode="False" />
                        <asp:BoundField DataField="commitpeople" HeaderText="上传员" />
                        <asp:BoundField DataField="state" HeaderText="状态" />
                        <asp:TemplateField HeaderText="删除" Visible="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="lb_Delete" runat="server" CausesValidation="False" 
                                    CommandName="Delete" 
                                    OnClientClick="return confirm(&quot;将删除此项目，且无法恢复，您确认删除此记录吗？&quot;)" Text="删除"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            &nbsp;共 
            <asp:Label ID="lbDataCount" runat="server" ForeColor="Red"></asp:Label>
            &nbsp;条数据 当前第：<asp:Label ID="lbNowPage" runat="server"></asp:Label>
            &nbsp;页 共<asp:Label ID="lbCount" runat="server"></asp:Label>
            页 
            <asp:LinkButton ID="lbFirstPage" runat="server" onclick="lbFirstPage_Click">首页</asp:LinkButton>
            &nbsp;<asp:LinkButton ID="lbLastPage" runat="server" onclick="lbLastPage_Click">上一页</asp:LinkButton>
            &nbsp;<asp:LinkButton ID="lbNextPage" runat="server" onclick="lbNextPage_Click" 
                AccessKey="n">下一页</asp:LinkButton>
            &nbsp;<asp:LinkButton ID="lbEndPage" runat="server" onclick="lbEndPage_Click">尾页</asp:LinkButton>
            &nbsp; 跳转到第 
            <asp:DropDownList ID="ddlGoTo" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlGoTo_SelectedIndexChanged">
            </asp:DropDownList>
            &nbsp;页
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    
    
       
    </form>
</body>
</html>
